<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>问卷编辑</title>
    <link rel="stylesheet" href="../css/InQues.css">

    <script type="text/javascript" src="../js/header.js"></script>
    <script type="text/javascript" src="../js/InQues.js"></script>
</head>
<body onload="initData();updateQuestionList();">

    <div class="edit">
        <div class="container list">
            <div class="title">
                <input type="text" id="title" placeholder="请输入标题">
            </div>
            <div id="questionList"></div>
            <div class="add" id="add">
                <div class="option close" id="addOption"></div>
                <div class="view" onclick="createButton()">
                    <p>添加问题</p>
                </div>
            </div>
            <div class="bottom clearfix">
                <div class="floatL">
                    问卷截止日期：<input type="date" name="" id="deadline" value="2023-01-07">
                </div>
                <div class="floatR">
                    <button onclick="saveQuestionare()">保存问卷</button>
                    <button class="pub">发布问卷</button>
                </div>
            </div>
        </div>
    </div>

    <div class="suspendBg">
        <div class="suspend">
            <div class="suspendHead clearfix">
                <span class="floatL">提示</span>
                <button class="floatR cancelBtn"><i class="iconfont iconquxiao"></i></button>
            </div>
            <div class="suspendText ">
                <span>是否发布问卷？</span>
                <span class="suspendDeadline" id="suspendDeadline"></span>
            </div>
            <div class="func clearfix">
                <div class="ensure floatL">
                    <button onclick="releaseQuestionare()">确定</button>
                </div>
                <div class="cancel floatR">
                    <button class="cancelBtn">取消</button>
                </div>
            </div>
        </div>
    </div>
</body>
</html>